package com.hand.test02.service.impl;

import com.hand.test02.domain.Attach;
import com.hand.test02.mapper.AttachMapper;
import com.hand.test02.service.IAttachService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 马旭阳
 * @date2019/7/26
 */
@Service
public class AttachServiceImpl implements IAttachService {
    @Autowired
    private AttachMapper attachMapper;
    @Override
    public Attach queryAttachById(Integer id) {
        return attachMapper.queryAttachById(id);
    }

    @Override
    public void insertAttach(Attach attach) {
        attachMapper.insertAttach(attach);
    }

    @Override
    public void updateAttach(Attach attach) {
        attachMapper.updateAttach(attach);
    }

    @Override
    public void deleteAttach(Integer id) {
        attachMapper.deleteAttach(id);
    }
}
